package util;

import java.sql.*;

public class DBMannager {
    private static  final String DRIVER = "com.mysql.jdbc.Driver";
    private static  final String URL = "jdbc:mysql://localhost:3306/11";
    private static  final String USERNAME = "root";
    private static  final String PASSWORD = "548166789";


    static {
        try {
            Class.forName(DRIVER);
        } catch (ClassNotFoundException e) {
            throw new RuntimeException(e);
        }
    }

    public static Connection getConnection() {
        Connection connection = null;

        try {
            connection= DriverManager.getConnection(URL,USERNAME,PASSWORD);
        } catch (SQLException e) {
            throw new RuntimeException(e);
        }
        return connection;
    }
    public static  void close(Connection conn, Statement st, ResultSet rs) {

    }
}
